package com.example.day20_zhongji.presenter;


import com.example.day20_zhongji.base.BasePresenter;
import com.example.day20_zhongji.bean.ArticleBean;
import com.example.day20_zhongji.model.AritcleCallBack;
import com.example.day20_zhongji.model.AritcleModel;
import com.example.day20_zhongji.view.ArticleView;

public class ArticlePresenter extends BasePresenter<ArticleView> implements AritcleCallBack {
    private AritcleModel model;
    @Override
    protected void initModel() {
        this.model=new AritcleModel();
        addModel(model);
    }
    public void getdata(){
        model.aritcleModel(this);
    }
    @Override
    public void onSuccess(ArticleBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
